/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sheep.model;

import java.awt.Color;
import java.awt.geom.RoundRectangle2D;
import java.util.Calendar;

/**
 *
 * @author geek
 */
public class Note {
  
  private static int number = 0;
  private int id;
  private RoundRectangle2D.Float noteZone;
  private boolean selected;
  private   boolean dragTopEnable = false;
  boolean dragBottomEnable = false;
  private boolean dragEnable = false;
  private   int xPos;
  int yPos;
  private Calendar date= Calendar.getInstance();
  private Calendar endDate= Calendar.getInstance();
  private String title ="Coucou";
  private String Location ="---";
  private String comment  ="";
  //private int length =3;
  private int concurrent =0;
  private int concurrentPos =0;
  
  private Calendrier calendrier;
  
  private Task task;
  
  private Color color = Color.BLUE;
  
  public Note(){
    endDate.add(Calendar.HOUR_OF_DAY, 1);
    number++;
    this.id = number;
  }
  
  public RoundRectangle2D.Float getNoteZone() {
    return noteZone;
  }

  public void setNoteZone(RoundRectangle2D.Float noteZone) {
    this.noteZone = noteZone;
  }

  public boolean isSelected() {
    return selected;
  }

  public void setSelected(boolean selected) {
    this.selected = selected;
  }

  public boolean isDragTopEnable() {
    return dragTopEnable;
  }

  public void setDragTopEnable(boolean dragTopEnable) {
    this.dragTopEnable = dragTopEnable;
  }

  public boolean isDragBottomEnable() {
    return dragBottomEnable;
  }

  public void setDragBottomEnable(boolean dragBottomEnable) {
    this.dragBottomEnable = dragBottomEnable;
  }

  public boolean isDragEnable() {
    return dragEnable;
  }

  public void setDragEnable(boolean dragEnable) {
    this.dragEnable = dragEnable;
  }

  public int getXPos() {
    return xPos;
  }

  public void setXPos(int xPos) {
    this.xPos = xPos;
  }

  public int getYPos() {
    return yPos;
  }

  public void setYPos(int yPos) {
    this.yPos = yPos;
  }

  public Calendar getDate() {
    return date;
  }

  public void setDate(Calendar date) {
    this.date = date;
  }

  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }

  public Calendar getEndDate() {
    return endDate;
  }

  public void setEndDate(Calendar endDate) {
    this.endDate = endDate;
  }

  public int getConcurrent() {
    return concurrent;
  }

  public void setConcurrent(int concurrent) {
    this.concurrent = concurrent;
  }

  public int getConcurrentPos() {
    return concurrentPos;
  }

  public void setConcurrentPos(int concurrentPos) {
    this.concurrentPos = concurrentPos;
  }

  public Calendrier getCalendrier() {
    return calendrier;
  }

  public void setCalendrier(Calendrier calendrier) {
    this.calendrier = calendrier;
  }

  public String getLocation() {
    return Location;
  }

  public void setLocation(String Location) {
    this.Location = Location;
  }

  public String getComment() {
    return comment;
  }

  public void setComment(String comment) {
    this.comment = comment;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public Task getTask() {
    return task;
  }

  public void setTask(Task task) {
    this.task = task;
  }

  public Color getColor() {
    return color;
  }

  public void setColor(Color color) {
    this.color = color;
  }
     
}

